﻿using System;

namespace enyo
{
    /// <summary>
    /// A submenu with items to perform select all, cut, copy, and paste commands. It is meant to go inside an AppMenu.
    /// </summary>
    public class EditMenu : AppMenuItem
    {
        /// <summary>
        /// If true, edit menu items will automatically disable if the focused element does not support editing.
        /// This setting will override the individual item disabled properties.
        /// </summary>
        public bool AutoDisableItems { get; set; }


        public bool SelectAllDisabled { get; set; }
        public bool CutDisabled { get; set; }
        public bool CopyDisabled { get; set; }
        public bool PasteDisabled { get; set; }
        public bool ShowShortcuts { get; set; }

        public EnyoEvent<Control> onSelectAll;
        public EnyoEvent<Control> onCut;
        public EnyoEvent<Control> onCopy;
        public EnyoEvent<Control> onPaste;
    }
}
